<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>属性选择器</title>
		<style type="text/css">
			td[lang]{
				color: red;
			}
			td[title='a']{
				color: red;
			}
			td[title='c']{
				color: red;
			}
			td[title='h']{
				color: red;
			}
		</style>
	</head>
	<body>
		<big><b>有lang属性的td元素会被选择</b></big>
		<table border="1">
			<tr>
				<td>th[lang]</td>
				<td>无属性</td>
				<td lang=''>lang=''</td>
				<td lang="en">lang='en'</td>
				<td lang="cn">lang='cn'</td>
			</tr>
		</table>
	</br>
	<big><b>title属性值为a的td元素会被选择</b></big>
	<table border="1">
		<tr>
			<td>[title='a']</td>
			<td>无属性</td>
			<td title="a">title=""</td>
			<td title="a">title=""</td>
			<td title="a">title=""</td>
			<td title="a">title=""</td>
		</tr>
	</table>
	</body>
</html>
